package com.aracky.assess.constants;

/**
 * @Author zengzhiping
 * @BelongsPackage com.aracky.system.constants
 * @CreateTime 2022-07-22
 * @Description 公共参数
 */
public class ComConstants {
    /**
     * 流程信息
     */
    public static class FLOW {
        /**
         * 批量开启流程
         */
        public static final String BATCH_START_FLOW="/flowable/task/batchStart";
    }


    /**
     * 绩效考核
     */
    public static class KPI {
        //第一评分人
        public static final String ASSESSOR1="ASSESSOR1";

        //第二评分人
        public static final String ASSESSOR2="ASSESSOR2";

        //员工填写完成状态
        public static final String EMP_COMPLETE_STRINGS = "A";
        //考核人完成状态
        public static final String ASSESSOR_COMPLETE_STRINGS = "B";
        //HR完成状态
        public static final String HR_COMPLETE_STRINGS = "C";
        //结束完成状态
        public static final String END_COMPLETE_STRINGS = "D";
        //替换列表：总人数 完成评分人数 未完成评分人数
        public static final String[] ASSESSOR_REPLACE_LIST = {"#{allTotal}", "#{completeTotal}", "#{noCompleteTotal}"};

        //考核人消息模板
        public static final String ASSESSOR_MSG_TEMPLATE =
                "<div class=\"gray\">您当月应评人数：" + ASSESSOR_REPLACE_LIST[0] + "人</div>" +
                        "<div class=\"green\">已填完评价人数：" + ASSESSOR_REPLACE_LIST[1] + "人</div>" +
                        "<div class=\"highlight\">未完成评价人数:" + ASSESSOR_REPLACE_LIST[2] + "人</div>";

        //替换列表：结束日期 标题
        public static final String[] EMP_REPLACE_LIST = {"#{endWriteDate}", "#{title}", "#{endAssessorDate}"};
        //员工消息模板
        public static final String EMP_MSG_TEMPLATE =
                "<div>请大家在" + EMP_REPLACE_LIST[0] + "前填写完成【" + EMP_REPLACE_LIST[1] + "自评部分】。\n上级评估请在" + EMP_REPLACE_LIST[2] + "前完成。</div>";

        //微信登录接口url
        public static final String WXLOGINURI = "/system/wx/login?wxUserId=";

        //员工考核页面url
        public static final String EMP_VIEW = "/performance/detail";

        //考核管理页面url
        public static final String LIST_VIEW = "/performance/list";

        //redis消息中的key--员工填写
        public static final String WRITE_REDIS_MSG_KEY = "write_redis_msg_key";
        //redis消息中的key--评分完成通知
        public static final String COMPLETE_REDIS_MSG_KEY = "complete_redis_msg_key";
    }

    /**
     * 角色信息
     */
    public static class ROLE {
        //考核人角色
        public static final String ROLE_ASSESSOR = "ROLE_ASSESSOR";

        //员工默认角色
        public static final String ROLE_DEFAULT_EMP = "ROLE_DEFAULT_EMP";

        //HR角色
        public static final String ROLE_HR = "ROLE_HR";
    }

}
